/**
 * 零基础学C语言
 * 
 * @version 1st
 * @author 明日科技
 * @see http://www.mingrisoft.com
 */

#include <stdio.h>

int main() {
    char cGrade;

    printf("please enter your grade\n");
    scanf("%c", &cGrade);

    printf("Grade is about: ");
    switch (cGrade) {
    case 'A':
        printf("90 ~ 100");
        break;
    case 'B':
        printf("80 ~ 89");
        break;
    case 'C':
        printf("70 ~ 79");
        break;
    case 'D':
        printf("60 ~ 69");
        break;
    case 'F':
        printf("< 60");
        break;
    default:
        printf("You enter a wrong char\n");
        break;
    }

    return 0;
}

/*
output:

*/